package com.youdian.http;

import com.youdian.entity.BaseEntity;
import com.youdian.entity.Business;
import com.youdian.entity.Food;

import java.util.List;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;

/**
 * Created by moker on 2017/12/14.
 */

public interface RetrofitService {


    @GET("business/get")
    Observable<BaseEntity<List<Business>>> getBusinessList();

    @GET("food/get/{businessId}")
    Observable<BaseEntity<List<Food>>> getFoodsList(@Path("businessId") Integer businessId);


}
